﻿using System;
using System.Collections.Generic;
using System.Text;
using SharpMap.Layers;
using SharpMap.Data.Providers;

namespace SharpMapApp
{
    public class ShapeFileLayerFactory : ILayerFactory
    {
        #region ILayerFactory Members

        public ILayer Create(string layerName, string connectionInfo)
        {
            ShapeFile shapeFileData = new ShapeFile(connectionInfo);
            VectorLayer shapeFileLayer = new VectorLayer(layerName, shapeFileData);
            return shapeFileLayer;
        }

        #endregion
    }
}
